package de.teamgamma.cansat.groundstation.main;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import de.szut.gui.language.TranslatableFrame;
import de.teamgamma.cansat.groundstation.control.Controller;

/**
 * Main frame of the entire GUI
 * @author Marc Huisinga
 *
 */

public class MainFrame extends TranslatableFrame {
	
	private static final long serialVersionUID = -2258892010800408954L;
	private JPanel contentPane;
	
	/**
	 * Generates the MainFrame
	 */
	public void startMainFrame() {
		setTranslationKey("main.MainFrame.title");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 600, 400);
		contentPane = new MainMenuPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		setResizable(false);
		Controller.getInstance().getGuiController().getLanguages().translateSpecificComponent(this);
		setVisible(true);
	}

}
